package com.chunayev.numerology.gui.action;

import java.awt.event.KeyEvent;
import java.util.Set;

import com.chunayev.numerology.domain.PositionSummary;


/**
 * @author Sergey Chunayev
 */
public class SaveTitleTokenAction extends AbstractTokenSaveSetAction {
    
    /**
     * 
     */
    private static final long serialVersionUID = 524150337604795788L;
    
    /**
     * 
     */
    public SaveTitleTokenAction() {
        super("title", KeyEvent.VK_T);
    }
    
    /*
     * (non-Javadoc)
     * @see
     * com.chunayev.numerology.gui.action.AbstractTokenSetAction#getModifiedSet(
     * com.chunayev.numerology.domain.PositionSummary)
     */
    @Override
    public Set<String> getModifiedSet(final PositionSummary positionSummary) {
        return positionSummary.getCompanyNames();
    }
    
}
